package com.cjjd.c.feature.mine.certify;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.cjjd.c.R;
import com.cjjd.c.base.ActionBarFragment;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * ----------------------------------
 * Created by xyd on 2017/8/14.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class CompleteCertifyFragment extends ActionBarFragment implements View.OnTouchListener {
    @Bind(R.id.btn_complete)
    Button btnComplete;

    @Override
    public Object getTitleString() {
        return "申请成功";
    }

    @Override
    public int getContentView() {
        return R.layout.fragment_certify_complete;
    }


    @Override
    public void initLeftButton(Button leftButton) {
        super.initLeftButton(leftButton);
        leftButton.setVisibility(View.GONE);
    }

    @Override
    public boolean onTouch(View v, MotionEvent event) {
        return true;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        rootView.setOnTouchListener(this);
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick(R.id.btn_complete)
    public void onViewClicked() {
        mContext.onBackPressed();
        mContext.onBackPressed();
        mContext.onBackPressed();
    }
}
